// const express = require('express');
// let app = express();
// //将文件作为静态资源
// app.use(express.static('./index'));
// app.listen('8081',()=>{
//     console.log('express server is running at http://127.0.0.1:8081');
// })


const express = require('express');
const app = express();

app.use(express.static('./ajax'));

app.listen('8081',()=>{
    console.log('server is running at http://127.0.0.1:8081');
})